import { Navigate, Outlet } from 'umi'
 
export default () => {
  if (localStorage.getItem("token")) {
    return <Outlet />;
  } else{
    return <Navigate to="/login" />;
  }
}